<%@ page pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ include file="./common/head.jsp"%>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>${appTitle }</title>
<link rel="stylesheet" href="${ctx}/assets/login/css.css">
	<style>
</style>
</head>
<body>
	<div class="logo">
	</div>
	<div class="text1">${appTitle }</div>
	<div class="text2">正确的判断来源于经验，然而经验来源于错误的判断。</div>
	<div class="text3"></div>
	<div class="text4">
		<a href="#"></a>
	</div>
	<div class="text5">2023@${appTitle }</div>
	<div id="form-info">
		<form action="${ctx}/com/login.do" method="POST">
			<div id="register">欢迎登录</div>
			<div id="old-account">
				忘记密码？
				<a href="${ctx}/pwd.jsp" id="login">学生找回密码</a>  
				<div style="margin-top: 30px;color:red">${signErrorMessage }</div>
			</div>
			<div class="form form1">
				<label for="userName" class="">用户名</label>
				<input type="text" id="userName" name="username" placeholder="请输入用户名" required="required" class="input input1" autofocus="autofocus">
			</div>
			<div class="form form2">
				<label for="psw" class="label-psw">密码</label>
				<input type="password" id="psw" name="password" placeholder="请输入密码" required="required" class="input input1">
			</div>
			
			<div class="form form2">
				<label for="psw" class="label-psw">角色</label>
				<select name="loginType"  class="input input1" style="width:354px"> 
					<option value="SysUser">管理员</option>
					<option value="Teacher">教师</option>
					<option value="SimpleUser">学生</option>
				</select>
			</div>
			<div class="form2 form">
				<label for="captcha" class="">验证码</label>
				<input type="text" name="checkcode" id="captcha" placeholder="请输入验证码" class="input input1" maxlength="4" required="required" style="width: 210px">
					<a href="javascript:void(0);"><img style="border: 0px; float: right;margin-right: 80px" width="110px" height="40px" src="${pageContext.request.contextPath }/checkcode" alt="验证码" align="left" onclick="this.src = '${pageContext.request.contextPath }/checkcode?' + Math.random();" /></a>
			</div>
			<div id="register">
				<input class="register" type="submit" value="登录" />
			</div>
		</form>
	</div>
</body>
<%session.removeAttribute("signErrorMessage"); %>
</html>